<?php
namespace App\Models;


class Course extends Model
{
    const CREATED_AT = null;
    const UPDATED_AT = null;
    protected $table = 'course';

    public static function getUserByTag(){
        $tag = Admin::tag();
        if($tag == 'visitor'){
            return $course = Course::where('id', 86)->get();
        }else if($tag == 'guest'){
            return $course = Course::where('id','!=', 86)->get();
        }
        return $course = Course::get();
    }

}
